package bg.cinema_system.service;

import java.sql.SQLException;
import java.util.List;

import bg.cinema_system.DAO.UserInfoDAO;
import bg.cinema_system.DAO.UserTicketsDAO;
import bg.cinema_system.pojo.UserTickets;

public class UserTicketsService {

	public static List<UserTickets> getUserTicketsList(int user_id)
			throws SQLException {
		return UserTicketsDAO.getUserTicketsList(user_id);
	}

	public static String getUsername(int user_id) throws SQLException {
		return UserInfoDAO.getUsername(user_id);
	}

	public static int getUserId(String username) throws SQLException {
		return UserInfoDAO.getUserId(username);
	}

}
